package com.hh.vrserver.web.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @author baijiu.yec
 */
@EnableJpaRepositories(basePackages = "com.hh")
@EntityScan(basePackages = {
        "com.hh.vrserver.model",
})
@Configuration
public class JpaConfig {

    @PersistenceContext
    private EntityManager entityManager;
}
